(load "/usr/local/share/gtags/gtags.el")
(autoload 'gtags-mode "gtags" "" t)  ;gtags-mode is true
(global-set-key (kbd "M-.") 'gtags-find-tag)
(global-set-key (kbd "M-,") 'gtags-find-rtag)
(global-set-key (kbd "M-g M-f") 'gtags-find-file)
(global-set-key (kbd "M-g M-s") 'gtags-find-symbol)
(global-set-key (kbd "M-g M-u") 'gtags-update)
(global-set-key (kbd "C-SPC") nil)

(add-to-list 'load-path "~/.emacs.d/onekey/company-mode")
(require 'company) 
;;(load "~/.emacs.d/onekey/company-mode/company.el")

;;(message "hello world!!!")
(add-hook 'after-init-hook 'global-company-mode)

;; ORG模式设置
(org-babel-do-load-languages
 'org-babel-load-languages
 '(;; other Babel languages
   (plantuml . t)))
(setq org-plantuml-jar-path
      (expand-file-name "~/.emacs.d/onekey/plantuml.jar"))
(setq org-confirm-babel-evaluate nil)
(setq org-support-shift-select t)

;;(add-hook 'org-babel-after-execute-hook 'bh/display-inline-images)
; Make babel results blocks lowercase
;;(setq org-babel-results-keyword "results")

;;yasnippet设置
(add-to-list 'load-path
              "~/.emacs.d/onekey/yasnippet")
(require 'yasnippet)
(yas-global-mode 1)
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(safe-local-variable-values
   (quote
    ((company-clang-arguments "-I/usr/include/" "-I/usr/local/include/")))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )
